package design.prototype;

public class MainTest {
    public static void main(String[] args) throws CloneNotSupportedException {

        MyBatisⅡ myBatisⅡ = new MyBatisⅡ();
        User Tom1 = myBatisⅡ.getUser("Tom");
        System.out.println("1:"+Tom1);
        Tom1.setName("Jerry");
        User Tom2 = myBatisⅡ.getUser("Tom");
        System.out.println("2:"+Tom2);
        User Tom3 = myBatisⅡ.getUser("Tom");
        System.out.println("3:"+Tom3);
        User Tom4 = myBatisⅡ.getUser("Tom");
        System.out.println("4:"+Tom4);
    }
}
